From 6be086cc705293b1f41b4e9e72d68d4cb975e0f5 Mon Sep 17 00:00:00 2001 From: Debian GNOME Maintainers Date: Thu, 25 Apr 2019 20:55:18 +0100 Subject: [PATCH] i386-rounding-errors Gbp-Pq: Name i386-rounding-errors.patch --- rsvg_internals/src/marker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rsvg_internals/src/marker.rs b/rsvg_internals/src/marker.rs index ddc4624..475a893 100644 --- a/rsvg_internals/src/marker.rs +++ b/rsvg_internals/src/marker.rs @@ -589,7 +589,9 @@ fn find_outgoing_directionality_forwards( // Normalizes an angle to [0.0, 2*PI) fn normalize_angle(mut angle: f64) -> f64 { - if angle < 0.0 { + if angle.abs() < std::f64::EPSILON { + angle = angle.abs(); + } else if angle < 0.0 { while angle < 0.0 { angle += PI * 2.0; } -- 2.30.2